package com.zhang;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

@SpringBootApplication
// 关键修改：添加 com.zhang.yunfu_his.mapper 包到 Mapper 扫描范围
@MapperScan(basePackages = {
        "com.zhang.bingmei_incomeexpenditure.mapper",  // 原有包
        "com.zhang.yunfu_norevocation.mapper",         // 原有包
        "com.zhang.yunfu_his.mapper"                   // 新增：InquiryPrescriptionMapper 所在包
})
@ComponentScan(
        basePackages = "com.zhang",
        excludeFilters = {
                @ComponentScan.Filter(
                        type = FilterType.ASSIGNABLE_TYPE,
                        classes = com.zhang.yunfu_norevocation.comm.Utils.KingNetUtils.class
                )
        }
)
public class runApplication {

    public static void main(String[] args) {
        SpringApplication.run(runApplication.class, args);
    }
}